<!DOCTYPE html>

<html>



<head>

	<meta charset="utf-8">

	<title>系统设置</title>

	<meta name="renderer" content="webkit">

	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

	<meta name="viewport"
		content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">

	<link rel="stylesheet" href="/public/static/layuiadmin/layui/css/layui.css" media="all">

	<link rel="stylesheet" href="/public/static/layuiadmin/style/admin.css" media="all">

	<style>
		.layui-form-label {
			width: 160px !important;
		}

		.layui-input-block {
			margin-left: 190px;
		}
	</style>

</head>



<body>

	<div class="layui-fluid">

		<div class="layui-row layui-col-space15">

			<div class="layui-col-md12">

				<div class="layui-card">

					<div class="layui-card-header">系统设置</div>

					<div class="layui-card-body" pad15>

						<div class="layui-form" method="post" lay-filter="component-form-group" id="systemForm">

							<input type="hidden" name="id" value="{$info.id}" />

							<div class="layui-tab">

								<ul class="layui-tab-title">

									<li class="layui-this">系统信息</li>

									<li>网站信息</li>

								</ul>

								<div class="layui-tab-content">

									<div class="layui-tab-item layui-show">

										<div class="layui-form-item">

											<label class="layui-form-label">系统名称</label>

											<div class="layui-input-block">

												<input type="text" name="system_title" value="{$info.system_title}"
													placeholder="请输入系统名称" class="layui-input">

											</div>

										</div>

										<div class="layui-form-item">

											<label class="layui-form-label">系统地址</label>

											<div class="layui-input-block">

												<input type="text" name="system_url" value="{$info.system_url}"
													placeholder="请输入系统登录地址" class="layui-input">

											</div>

										</div>

										<div class="layui-form-item">

											<label class="layui-form-label">联系人</label>

											<div class="layui-input-block">

												<input type="text" name="system_name" value="{$info.system_name}"
													placeholder="请输入联系人" class="layui-input">

											</div>

										</div>

										<div class="layui-form-item">

											<label class="layui-form-label">联系电话</label>

											<div class="layui-input-block">

												<input type="text" name="system_tel" value="{$info.system_tel}"
													placeholder="请输入联系电话" class="layui-input">

											</div>

										</div>

										<div class="layui-form-item">

											<label class="layui-form-label">联系邮箱</label>

											<div class="layui-input-block">

												<input type="text" name="system_email" value="{$info.system_email}"
													placeholder="请输入联系邮箱" class="layui-input">

											</div>

										</div>

										<div class="layui-form-item">

											<label class="layui-form-label">联系地址</label>

											<div class="layui-input-block">

												<input type="text" name="system_address" value="{$info.system_address}"
													placeholder="请输入联系地址" class="layui-input">

											</div>

										</div>

									</div>

									<div class="layui-tab-item">

										<div class="layui-form-item">

											<label class="layui-form-label">网站名称</label>

											<div class="layui-input-block">

												<input type="text" name="web_title" value="{$info.web_title}"
													placeholder="请输入网站名称" class="layui-input">

											</div>

										</div>

										<div class="layui-form-item">

											<label class="layui-form-label">网站地址</label>

											<div class="layui-input-block">

												<input type="text" name="web_url" value="{$info.web_url}"
													placeholder="请输入网站URL地址" class="layui-input">

											</div>

										</div>

										<div class="layui-form-item">

											<label class="layui-form-label">邮箱</label>

											<div class="layui-input-block">

												<input type="text" name="web_name" value="{$info.web_name}"
													placeholder="请输入邮箱" class="layui-input">

											</div>

										</div>

										<div class="layui-form-item">

											<label class="layui-form-label">咨询电话</label>

											<div class="layui-input-block">

												<input type="text" name="web_tel" value="{$info.web_tel}"
													placeholder="请输入咨询电话" class="layui-input">

											</div>

										</div>

										<div class="layui-form-item">

											<label class="layui-form-label">招办地址</label>

											<div class="layui-input-block">

												<input type="text" name="web_email" value="{$info.web_email}"
													placeholder="请输入招办地址" class="layui-input">

											</div>

										</div>

										<div class="layui-form-item">

											<label class="layui-form-label">学院地址</label>

											<div class="layui-input-block">

												<input type="text" name="web_address" value="{$info.web_address}"
													placeholder="请输入学院地址" class="layui-input">

											</div>

										</div>

										<div class="layui-form-item">

											<label class="layui-form-label">网站备案号</label>

											<div class="layui-input-block">

												<input type="text" name="web_icp" value="{$info.web_icp}"
													placeholder="请输入网站备案号" class="layui-input">

											</div>

										</div>

									</div>

								</div>

							</div>

							<div class="layui-form-item layui-layout-admin">

								<div class="layui-input-block">

									<div class="layui-footer" style="left: 0;">

										<button class="layui-btn" lay-submit=""
											lay-filter="component-form-demo1">保存</button>

									</div>

								</div>

							</div>

						</div>

					</div>

				</div>

			</div>

		</div>

	</div>

	<script src="/public/static/layuiadmin/layui/layui.js"></script>

	<script>

		layui.config({

			base: '/public/static/layuiadmin/' // 静态资源所在路径

		}).extend({

			index: 'lib/index', // 主入口模块

			api: 'api'

		}).use(['index', 'form', 'set', 'api'], function () {

			var $ = layui.$,

				admin = layui.admin,

				element = layui.element,

				layer = layui.layer,

				api = layui.api,

				form = layui.form;



			form.render(null, 'component-form-group');

			/* 监听提交 */

			form.on('submit(component-form-demo1)', function (data) {

				var dats = data.field;

				var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引

				layer.msg('加载中', {

					icon: 16,

					shade: 0.01

				});

				api.ajax('{:url("save")}', 'post', 'json', dats, function (res) {

					layer.closeAll('loading');

					layer.msg(res.msg);

				});

				return false;

			});

		});

	</script>

</body>



</html>